package cn.itcast.scala.course05

/**
  * Tuple元组操作
  * create by zhangtian on 2019/1/8
  */
object TupleApp extends App {
  val a = (1, 2, 3, 4, 5)
  println(a._1)
  println(a._2)

  for(i <- 0 until(a.productArity)) {
    println(a.productElement(i))
  }
}
